# $Id$
# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>

pkgname=bubblewrap
pkgver=0.1.8
pkgrel=1
pkgdesc='Unprivileged sandboxing tool'
url='https://github.com/projectatomic/bubblewrap'
arch=(i686 x86_64)
license=(GPL)
depends=(glibc)
makedepends=(libxslt docbook-xsl)
source=($url/releases/download/v$pkgver/bubblewrap-${pkgver}.tar.xz)
sha256sums=('4c1c7f71821e378ac3800de6c1124ed267844a4849f95e557f2e378ed53ddebf')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr \
    --with-priv-mode=setuid
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
